# Top-Level CmakeLists.txt
cmake_minimum_required(VERSION 2.6)
PROJECT( AFDC )
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
ADD_SUBDIRECTORY( feyndiagram )
ADD_SUBDIRECTORY( oneloop )
ADD_SUBDIRECTORY( afdc )

find_package(BerkeleyDBstl REQUIRED)
#MESSAGE( STATUS “Berkley DB libs ” ${DBSTL_LIBRARY} )
#MESSAGE( STATUS “Berkley DB includes ” ${DBSTL_INCLUDE_DIR} )

INCLUDE_DIRECTORIES(${AFDC_SOURCE_DIR}/feyndiagram ${AFDC_SOURCE_DIR}/oneloop ${AFDC_SOURCE_DIR}/afdc ${DBSTL_INCLUDE_DIR})
ADD_EXECUTABLE(R main.cpp)
# Link the executable to the Hello library.
TARGET_LINK_LIBRARIES(R afdc FD ginac OneLoop sector_decomposition bubblesii ${DBSTL_LIBRARY})

#MESSAGE( STATUS “message” ${AFDC_SOURCE_DIR} )
#ADD_SUBDIRECTORY( Test )